<?php
/**
 * Created by PhpStorm.
 * User: gaochaolyf
 * Date: 16/5/17
 * Time: 下午5:40
 */

namespace api\Model;

use Think\Model;

class OrderCollectModel extends Model
{
    function __construct() {
        $this->model = M('OrderCollect');
    }

    public function getOrderCollect($field = array('*'), $condition = array()) {
        $data = $this->model->where($condition)->field($field)->find();
        $data = $data ? $data : array();
        return $data;
    }

    
}